package com.luhui.dubbo.consumer;

import com.alibaba.dubbo.config.annotation.Reference;
import com.luhui.ISayHello;
import org.springframework.stereotype.Component;

/**
 * @author luhui
 * @version 1.0
 * @date 2019/6/8 0:42
 */
@Component
public class SayService {
    @Reference
    private ISayHello sayHello;

    public String sayHello(String name){
        return sayHello.sayHello(name);
    }
}
